package pastryManager;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import businessLayer.Facade;

import presentationLayer.PrincipalView;

public class PastryManagerApplication 
{
	
	public static void main(String[] args) 
	{
		try 
        {
            //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            //UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
            //UIManager.setLookAndFeel("com.nilo.plaf.nimrod.NimRODLookAndFeel");
            //UIManager.setLookAndFeel("com.jtattoo.plaf.AbstractLookAndFeel");
            //UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.aero.AeroLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.aluminium.AluminiumLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.bernstein.BernsteinLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.fast.FastLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.hifi.HiFiLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.luna.LunaLookAndFeel"); SI
            UIManager.setLookAndFeel("com.jtattoo.plaf.mcwin.McWinLookAndFeel"); 
            //UIManager.setLookAndFeel("com.jtattoo.plaf.mint.MintLookAndFeel"); SI
            //UIManager.setLookAndFeel("com.jtattoo.plaf.noire.NoireLookAndFeel");
            //UIManager.setLookAndFeel("com.jtattoo.plaf.smart.SmartLookAndFeel");
        }
        catch (ClassNotFoundException ex){}
        catch (InstantiationException ex) {} 
        catch (IllegalAccessException ex) {} 
        catch (UnsupportedLookAndFeelException ex) {}
        
		PrincipalView principalView;
		Facade facade;
		
		principalView = new PrincipalView();
		facade = new Facade();
		
		principalView.setFacade( facade );
		
		facade.setPrincipalView( principalView );
		
		principalView.setVisible( true );
	}

}
